$.ajax({
    url: '/admin/webset',
    success: function (reslut) {
       $('#name').val(reslut.name)
       $('#description').val(reslut.description)
       $('#keyword').val(reslut.keyword)
        $('#icon').val(reslut.icon)
        $('.form-horizontal').attr('data-id', reslut.id)

    }
})

$('.form-horizontal').on('submit', function () {
    var formData = $(this).serialize();
    var id = $('.form-horizontal').attr('data-id');
    formData = formData + '&id='  + id
    $.ajax({
        type: 'post',
        url: '/admin/websetModify',
        data: formData,
        success: function (reslut) {
            window.location.href = "settings.html"
            return false
        }
    })
    return false
})